{extend name="main/index" /}
{block name="main"}
<div class="main-content">
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
        </script>

        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="{:url('admin/material/index')}">项目材料</a>
            </li>
        </ul><!-- .breadcrumb -->

        <div class="nav-search" id="nav-search">
            <form class="form-search">
                <span class="input-icon">
                    <input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
                    <i class="icon-search nav-search-icon"></i>
                </span>
            </form>
        </div><!-- #nav-search -->
    </div>

    <div class="page-content">
        <h3 class="header smaller lighter blue">项目材料入库</h3>
        <div class="row">
            <div class="col-xs-12">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="table-responsive">
                            <table id="sample-table-2" class="table table-striped table-bordered table-hover">
                                <thead>
                                    <tr>
                                            <th>ID</th>
                                            <th>材料名称</th>
                                            <th>用材分部</th>
                                            <th>实际单价</th>
                                            <th>入库数量</th>
                                            <th>入库总价</th>
                                            <th>库存</th>
                                            <th>更改状态</th>
                                            
                                    </tr>
                                </thead>
                                <tbody>
                                {volist name="list" id="v"}
                                    <tr>
                                            <td>{$v['id']}</td>
                                            <td>{$v['material_name']}</td>
                                            <td>{$v['timber_division']}</td>
                                            <td>{$v['actual_unit_price']}</td>
                                            <td>{$v['actual_in_number']}</td>
                                            <td>{$v['in_total_price']}</td>
                                            <td>{$v['in_stock']}</td>
                                        <td>

                                            <!--<span class="label label-lg label-yellow arrowed-in">Yellow</span>-->
                                            <!--<button class="btn btn-info">Info</button>-->
                                            <!--<button class="btn btn-xs btn-danger">Danger</button>-->
                                            <a href="{:url('admin/Material/warehouse',['id'=> $v['id']])}"><span class="btn btn-xs btn-primary">修改</span></a>
                                            <a href="{:url('admin/Material/addwarehouse',['id'=> $v['id']])}"><span class="btn btn-xs btn-primary">增加</span></a>
                                            <a href="{:url('admin/material/outWarehouse', ['id' => $v['id']])}"><span class="btn btn-xs btn-primary">出库</span></a>
                                            <a class="red dell-btn" data-id="{$v['id']}"  >
                                                <button class="btn btn-xs btn-danger ">删除</button>
                                            </a>
                                        </td>
                                    </tr>
                                {/volist}
                                </tbody>
                            </table>

                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="col-xs-9"></div>
                        <div>
                            <ul class="pagination">
                                <li class="disabled">

                                    <div>
                                        <ul>
                                            {volist name='list' id='user'}
                                            {/volist}
                                        </ul>
                                    </div>
                                    {$page}
                                <li>

                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.page-content -->
</div>
    {/block}

{block name="myjs"}
<script src="/static/admin/assets/meijs/admin_material.js"></script>
{/block}

